package com.springdemo.spring5.collectionType;

import java.lang.reflect.Array;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * Created with IntelliJ IDEA.
 * User: zjz
 * Date: 2022/02/23 19:36
 * Description:
 * Version: V1.0
 */
public class Stu {
    //1.数组类型属性
    private String[] course;
    //2.list集合类型属性
    private List<String> list;
    //3.map集合类型属性
    private Map<String,String> map;
    //4.set集合类型属性
    private Set<String> set;

    //学生所学多门课程
    private List<Course> courseList;

    public void setCourseList(List<Course> courseList) {
        this.courseList = courseList;
    }

    public void setSet(Set<String> set) {
        this.set = set;
    }
    public void setList(List<String> list) {
        this.list = list;
    }
    public void setMap(Map<String, String> map) {
        this.map = map;
    }
    public void setCourse(String[] course) {
        this.course = course;
    }

    public void test(){
        System.out.println(Arrays.toString(course));
        System.out.println(list);
        System.out.println(map);
        System.out.println(set);
        System.out.println(courseList);
    }
}
